Fix memory leak in libxenstore python bindings
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 1 Oct 2009 11:26:15 +0000 (12:26 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 1 Oct 2009 11:26:15 +0000 (12:26 +0100)
commitca518e1e809b46cc40f9d292e6ee7211efeec20c
tree6830f15c59c808c4fedd51ceb4eec31c5518e51b
parentbf8898e67641402fa1eb8386c5f3cb7272107ca3
Fix memory leak in libxenstore python bindings

Temporary tuple0 python object was not freed at the end of
xspy_set_permissions() in case no error occurred. To reduce code
duplication, this path reuses the cleanup code.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/python/xen/lowlevel/xs/xs.c